/******************************************************************************
 * @File name   :      ITempOrganizationUserDao.java
 *
 * @Author      :      Brenda Yin
 *
 * @Date        :      2011-6-21
 *
 * @Copyright Notice: 
 * Copyright (c) 2014 DMS, Inc. All  Rights Reserved.
 * This software is published under the terms of the DMS Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who        Version        Comments
 * 2011-6-21 下午04:36:27        Brenda Yin    1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.framework.dm.employeemgnt.dao;

import com.cap.bts.framework.dm.employeemgnt.domain.TempOrganizationUser;

import com.cap.bts.framework.common.dao.IBaseDao;

/**
 *
 */
public interface ITempOrganizationUserDao extends IBaseDao<TempOrganizationUser, Long> {
    /**
     * 根据用户ID查询待审批组织
     * @Date        :      2011-6-21
     * @param userCode
     * @return
     */
    public TempOrganizationUser getTempOrgUsersByUserId(Long userId);
    /**
     * 根据用户Id、组织ID删除用户组织表
     * @Date        :      2011-6-22
     * @param orgId
     * @param userId
     */
    public void deleteTempOrganizationUserByOrgIdAndUserId(Long orgId,long userId);
    
    /**
     * 根据用户Id删除用户组织表
     * @Date        :      2011-6-29
     * @param userId long 
     */
    public void deleteTempOrgUserOrgByUserId(long userId);
}
